package br.unisul.avancado.core.dao.conexao;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class EntityManagerProvider {

	private static EntityManagerFactory emf;
	
	public static EntityManagerFactory getEntityManagerFactory(){
		
		if(emf == null){
			emf = Persistence.createEntityManagerFactory("avancadoPU");
		}		
		return emf;
	}
}
